package com.hc.sss.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * red_envelope[红包表]
 * @author Administrator
 *
 */
public class RedEnvelope implements Serializable{
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Integer reId;//红包id

    private String reTitle;//红包标题

    private String reContent;//红包内容

    private BigDecimal reMoney;//优惠金额

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date reEndTime;//使用截止时间

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date reCreateTime;//创建时间

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date reUpdateTime;//更新时间

    private int reStatus;//红包状态(-1删除，1正常）

    public int getReStatus() {
        return reStatus;
    }

    public void setReStatus(int reStatus) {
        this.reStatus = reStatus;
    }

    public Integer getReId() {
        return reId;
    }

    public void setReId(Integer reId) {
        this.reId = reId;
    }

    public String getReTitle() {
        return reTitle;
    }

    public void setReTitle(String reTitle) {
        this.reTitle = reTitle == null ? null : reTitle.trim();
    }

    public String getReContent() {
        return reContent;
    }

    public void setReContent(String reContent) {
        this.reContent = reContent == null ? null : reContent.trim();
    }


    public BigDecimal getReMoney() {
		return reMoney;
	}

	public void setReMoney(BigDecimal reMoney) {
		this.reMoney = reMoney;
	}

	public Date getReEndTime() {
        return reEndTime;
    }

    public void setReEndTime(Date reEndTime) {
        this.reEndTime = reEndTime;
    }

    public Date getReCreateTime() {
        return reCreateTime;
    }

    public void setReCreateTime(Date reCreateTime) {
        this.reCreateTime = reCreateTime;
    }

    public Date getReUpdateTime() {
        return reUpdateTime;
    }

    public void setReUpdateTime(Date reUpdateTime) {
        this.reUpdateTime = reUpdateTime;
    }
}